package com.xuetang9.t9.hotel.beans;


import java.text.SimpleDateFormat;
import java.util.List;

public class EFoodcategory {

  private long id;
  private String name;
  private long foodCount;
  private java.sql.Timestamp createTime;

  private List<EFood> foods;

  public List<EFood> getFoods() {
    return foods;
  }

  public void setFoods(List<EFood> foods) {
    this.foods = foods;
  }

  public EFoodcategory() {
  }


  public EFoodcategory(long id, String name, long foodCount) {
    this.id = id;
    this.name = name;
    this.foodCount = foodCount;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public long getFoodCount() {
    return foodCount;
  }

  public void setFoodCount(long foodCount) {
    this.foodCount = foodCount;
  }


  public String getCreateTime() {
    SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    return simpleDateFormat.format(createTime);
  }

  public void setCreateTime(java.sql.Timestamp createTime) {
    this.createTime = createTime;
  }

}
